#pragma once

#include "cocos2d.h"
#include "Player.h"
#include "CardGame.h"
#include"ui/CocosGUI.h"
using namespace cocos2d::ui;
using namespace cocos2d;


class Scene0913 : public cocos2d::Scene
{
public:
	static cocos2d::Scene* createScene();

	virtual bool init();
	void menuItemClicked(Ref* sender);
	CREATE_FUNC(Scene0913);
private:
	CardGame* game;
	Player* player_self;
	Player* player_left;
	Player* player_right;
	Player* player_front;
	int self_pos;
	int count = 1;
	float cardsOriginY;
	string strArrName[4] = { "Player1","Player2","Player3","Player4" };
private:
	void loadPlayerUI(Player* player);
	char getPlayerCharPosition(int pos);
	void begingame(Ref* sender);
	bool onTouchBegan(Touch* touch, Event* event);
	void onTouchMoved(Touch* touch, Event* event);
	void buttonClicked(Ref* sender, Widget::TouchEventType type);
};

